﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Vara_Data_Layer.Vara_Data_Asset;
using Vara_Data_Layer.Vara_Data_Additional_Option;

namespace AssetTrackingModals.User_Controls.Asset_Module.Tabs
{
    public partial class Tab_6_Additional : System.Web.UI.UserControl
    {
        protected List<Vara_Data_IAdditional_Option> AdditionalOptions;

        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        public void Load_Interface(Vara_Data_IAsset AssetInformationToLoad)
        {
            AdditionalOptions = AssetInformationToLoad.AdditionalOptions;
            TextBox_Notes.Text = AssetInformationToLoad.Description;
            RepeaterAdditionalOptionsLeft.DataSource = new Vara_Data_Additional_Option_Controller().AdditionalOptions;
            RepeaterAdditionalOptionsLeft.DataBind();
        }
    }
}